import { _baseURL, request } from '../http'
const baseURL = _baseURL.TOTAL_URL

// https://www.axios-http.cn/docs/req_config

/**
 * 新建收藏夹
 * @param {object} data
 * @returns
 */
export function saveRepository(data: any) {
  return request({
    baseURL,
    url: '/api/v1/folderInfo/save',
    method: 'post',
    data: {
      folderType: 1,
      parentId: 0,
      ...data,
    },
  })
}
